home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8409.arc
/
DASCON4.BAS
< prev
next >
Wrap
BASIC Source File
|
1986-09-14
|
640b
|
22 lines
10 REM A/D 4 CHANNEL FREE SCAN (MODE 0)
20 REM PRINTING OUT CONTINUOUS DATA ON A/D CHANNEL 0 & 1
30 CLEAR,62463!
40 DEF SEG=0
50 SG=256*PEEK(&H511)+PEEK(&H510)
60 SG=62463!/16+SG
70 DEF SEG = SG
80 BLOAD "DASCON1.BIN",0
90 DIM DIO%(8)
100 MD%= 0
110 CH%=0
120 DIO%(0)=0:DIO%(1)=0
130 BASADR%=768
140 DEF SEG = SG
150 DASCON1 = 0
160 CALL DASCON1 (MD%,CH%,DIO%(0),DIO%(1),BASADR%)
170 IF DIO%(0)>=500 THEN DIO%(0)=1 ELSE DIO%(0)=0
180 MD%=9
190 CH%=0
200 CALL DASCON1 (MD%,CH%,DIO%(0),DIO%(1),BASADR%)
210 GOTO 100